//1.手动的切换不同的环境
// const BASE_URL = 'http://coderzsy.org/dev'
// const BASE_NAME = 'coderzsy'

// const BASE_URL = 'http://coderzsy.org/prod'
// const BASE_NAME = 'cobe'

// const BASE_URL = 'http://coderzsy.org/test'
// const BASE_NAME = 'james'

//2.根据process.env.NODE_ENV
let BASE_URL = ''
const TIME_OUT = 10000

if (process.env.NODE_ENV === 'development') {
  BASE_URL = '/api'
} else if (process.env.NODE_ENV === 'production') {
  BASE_URL = 'http://coderzsy.org/prod'
} else {
  BASE_URL = 'http://coderzsy.org/test'
}

export { BASE_URL, TIME_OUT }

// console.log(process.env.NODE_ENV)

//3.根目录下创建.env文件
